{
    // 0
    if([@"selfView" isEqualToString:@"Ulta"]) {
        UIView *selfView = [[UIView alloc] init];
        selfView.backgroundColor = [UIColor clearColor];
        UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
        UIVisualEffectView *visualEffectView = [[UIVisualEffectView alloc]initWithEffect:blurEffect];
        visualEffectView.frame =CGRectMake(0, 0, selfView.frame.size.width, selfView.frame.size.height);
        [selfView addSubview:visualEffectView];
        [selfView sendSubviewToBack:visualEffectView];
        
        UIView *selfView_2 = [[UIView alloc] init];
        selfView_2.backgroundColor = [UIColor clearColor];
        UIBlurEffect *blurEffect_2 = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
        UIVisualEffectView *visualEffectView_2 = [[UIVisualEffectView alloc]initWithEffect:blurEffect_2];
        visualEffectView_2.frame =CGRectMake(0, 0, selfView_2.frame.size.width, selfView_2.frame.size.height);
        [selfView_2 addSubview:visualEffectView_2];
        [selfView_2 sendSubviewToBack:visualEffectView_2];
    }
}

{
    // 1
    if([@"borderSpacing" isEqualToString:@"Ulta"]) {
        CGRect rect = CGRectZero;
        CGColorRef cgColor = [UIColor redColor].CGColor;
        CGFloat start = 0;
        CGFloat end = 190;
        CGFloat borderSpacing = 20;
        CGFloat radius = MIN(CGRectGetHeight(rect), CGRectGetWidth(rect)) * 0.5 - borderSpacing;
        CGFloat centerX = CGRectGetWidth(rect) * 0.5;
        CGFloat centerY = CGRectGetHeight(rect) * 0.5;
        
        CGContextRef progressContext = UIGraphicsGetCurrentContext();
        CGContextSetFillColorWithColor(progressContext, cgColor);
        CGContextMoveToPoint(progressContext, centerX, centerY);
        CGContextAddArc(progressContext, centerX, centerY, radius, start, end, 0);
        CGContextClosePath(progressContext);
        CGContextFillPath(progressContext);
    }
}

{
    //2
    if([@"UIGraphicsGetImageFromCurrentImageContext" isEqualToString:@"Ulta"]) {
        UIColor *color = [UIColor redColor];
        CGSize size = CGSizeZero;
        CGRect rect = CGRectMake(0.0f, 0.0f, size.width, size.height);
        UIGraphicsBeginImageContextWithOptions(rect.size, NO, 0);
        CGContextRef context = UIGraphicsGetCurrentContext();
        CGContextSetFillColorWithColor(context, color.CGColor);
        CGContextFillRect(context, rect);
        UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
        
        
        UIGraphicsBeginImageContext(image.size);
        CGContextRef ctx = UIGraphicsGetCurrentContext();
        CGRect rect_2 = CGRectMake(0, 0, image.size.width, image.size.height);
        CGContextAddEllipseInRect(ctx, rect_2);
        CGContextClip(ctx);
        [image drawInRect:rect];
        UIImage *image_2 = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
        NSLog(@"%@",image_2);
    }
}


{
    //3
    if([@"NSDateFormatter" isEqualToString:@"Ulta"]) {
        NSString * expiration = @"stringByReplacingOccurrencesOfString";
        NSString *expirationString = [[expiration stringByReplacingOccurrencesOfString:@"T" withString:@" "] stringByReplacingOccurrencesOfString:@"Z" withString:@""];
        NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
        [dateFormatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
        NSDate *exdate = [dateFormatter dateFromString:expirationString];
        NSLog(@"%@",exdate);
        
        NSString * expiration_2 = @"YYYY-MM-dd HH:mm:ss";
        NSString *expirationString_2 = [[expiration_2 stringByReplacingOccurrencesOfString:@"T" withString:@" "] stringByReplacingOccurrencesOfString:@"Z" withString:@""];
        NSDateFormatter *dateFormatter_2 = [[NSDateFormatter alloc] init];
        [dateFormatter_2 setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
        NSDate *exdate_2 = [dateFormatter_2 dateFromString:expirationString_2];
        NSLog(@"%@",exdate_2);

        
        NSString * expiration_3 = @"NSDateFormatter";
        NSString *expirationString_3 = [[expiration_3 stringByReplacingOccurrencesOfString:@"T" withString:@" "] stringByReplacingOccurrencesOfString:@"Z" withString:@""];
        NSDateFormatter *dateFormatter_3 = [[NSDateFormatter alloc] init];
        [dateFormatter_3 setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
        NSDate *exdate_3 = [dateFormatter_3 dateFromString:expirationString_3];
        NSLog(@"%@",exdate_3);
    }
}


{
    //4
    if([@"NSLinkAttributeName" isEqualToString:@"Ulta"]) {
        NSString *UltaPDP_str_all  = @"UltaPDP[Already have an account? Log in]UltaPDP" ;
        NSString *UltaPDP_str_sginup  = @"UltaPDP[Log in]UltaPDP";
        NSRange UltaPDP_range_sginup  = [UltaPDP_str_all rangeOfString:UltaPDP_str_sginup];
        NSString *UltaPDP_str_2  = @"UltaPDP[Log in]UltaPDP";
        NSRange UltaPDP_range_2  = [UltaPDP_str_all rangeOfString:UltaPDP_str_2];
        NSMutableAttributedString * UltaPDP_attR = [[NSMutableAttributedString alloc] initWithString:UltaPDP_str_all attributes:@{
            NSForegroundColorAttributeName:[UIColor redColor],
            NSFontAttributeName:[UIFont boldSystemFontOfSize:24],
        }];
        [UltaPDP_attR addAttribute:NSLinkAttributeName value:@"UltaPDPLogin://" range:UltaPDP_range_sginup];
        [UltaPDP_attR addAttribute:NSLinkAttributeName value:@"dddd://" range:UltaPDP_range_2];
        UITextView *UltaPDP_textV_elua = [[UITextView alloc] init];
        UltaPDP_textV_elua.textContainer.maximumNumberOfLines = 1;
        UltaPDP_textV_elua.textAlignment = NSTextAlignmentCenter;
        UltaPDP_textV_elua.editable = false;
        UltaPDP_textV_elua.attributedText = UltaPDP_attR;
        UltaPDP_textV_elua.textAlignment = NSTextAlignmentCenter;
        UltaPDP_textV_elua.linkTextAttributes = @{
            NSForegroundColorAttributeName:[UIColor redColor],
            NSFontAttributeName:[UIFont boldSystemFontOfSize:24],
        };
    }
}


{
    //5
    if([@"UIViewContentModeScaleAspectFill" isEqualToString:@"Ulta"]) {
        UIView *UltaPDP_view = [[UIView alloc] init];
        UltaPDP_view.backgroundColor  = [UIColor redColor];
        UltaPDP_view.layer.cornerRadius = 20;
        UltaPDP_view.layer.borderColor = [UIColor redColor].CGColor;
        UltaPDP_view.layer.borderWidth = 2;
        
        UIImageView *UltaPDP_e_imgV = [[UIImageView alloc] init];
        UltaPDP_e_imgV.image = [UIImage imageNamed:@"UltaPDP_bg_home"];
        UltaPDP_e_imgV.contentMode = UIViewContentModeScaleAspectFill;
        UltaPDP_e_imgV.backgroundColor  = [UIColor redColor];
        UltaPDP_e_imgV.layer.cornerRadius = 20;
        UltaPDP_e_imgV.layer.borderColor = [UIColor redColor].CGColor;
        UltaPDP_e_imgV.layer.borderWidth = 2;
        [UltaPDP_view addSubview:UltaPDP_e_imgV];
        
        UIImageView *UltaPDP_imgv_logo = [[UIImageView alloc] init];
        UltaPDP_imgv_logo.image = [UIImage imageNamed:@"Luanch_icon"];
        UltaPDP_imgv_logo.contentMode = UIViewContentModeScaleAspectFill;
        UltaPDP_imgv_logo.backgroundColor  = [UIColor redColor];
        UltaPDP_imgv_logo.layer.cornerRadius = 20;
        UltaPDP_imgv_logo.layer.borderColor = [UIColor redColor].CGColor;
        UltaPDP_imgv_logo.layer.borderWidth = 2;
        [UltaPDP_view addSubview:UltaPDP_imgv_logo];

        UIActivityIndicatorView *UltaPDP_view_loading = [[UIActivityIndicatorView alloc] init];
        UltaPDP_view_loading.backgroundColor  = [UIColor redColor];
        UltaPDP_view_loading.layer.cornerRadius = 20;
        UltaPDP_view_loading.layer.borderColor = [UIColor redColor].CGColor;
        UltaPDP_view_loading.layer.borderWidth = 2;
        UltaPDP_view_loading.hidden = true;
        [UltaPDP_view addSubview:UltaPDP_view_loading];
    }

}
